Integrand size = 23, antiderivative size = 176 \[ \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+a \sec (c+d x))^2} \, dx=-\frac {4 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{a^2 d}-\frac {5 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 a^2 d}+\frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{a^2 d}-\frac {5 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\sec (c+d x))}-\frac {\sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \sec (c+d x))^2} \]
[Out]
Time = 0.29 (sec) , antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {3901, 4104, 3872, 3856, 2720, 3853, 2719} \[ \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+a \sec (c+d x))^2} \, dx=-\frac {5 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 a^2 d (\sec (c+d x)+1)}+\frac {4 \sin (c+d x) \sqrt {\sec (c+d x)}}{a^2 d}-\frac {5 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 a^2 d}-\frac {4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}-\frac {\sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{3 d (a \sec (c+d x)+a)^2} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 3853
Rule 3856
Rule 3872
Rule 3901
Rule 4104
Rubi steps \begin{align*} \text {integral}& = -\frac {\sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \sec (c+d x))^2}-\frac {\int \frac {\sec ^{\frac {3}{2}}(c+d x) \left (\frac {3 a}{2}-\frac {7}{2} a \sec (c+d x)\right )}{a+a \sec (c+d x)} \, dx}{3 a^2} \\ & = -\frac {5 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\sec (c+d x))}-\frac {\sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \sec (c+d x))^2}-\frac {\int \sqrt {\sec (c+d x)} \left (\frac {5 a^2}{2}-6 a^2 \sec (c+d x)\right ) \, dx}{3 a^4} \\ & = -\frac {5 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\sec (c+d x))}-\frac {\sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \sec (c+d x))^2}-\frac {5 \int \sqrt {\sec (c+d x)} \, dx}{6 a^2}+\frac {2 \int \sec ^{\frac {3}{2}}(c+d x) \, dx}{a^2} \\ & = \frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{a^2 d}-\frac {5 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\sec (c+d x))}-\frac {\sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \sec (c+d x))^2}-\frac {2 \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx}{a^2}-\frac {\left (5 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{6 a^2} \\ & = -\frac {5 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 a^2 d}+\frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{a^2 d}-\frac {5 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\sec (c+d x))}-\frac {\sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \sec (c+d x))^2}-\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{a^2} \\ & = -\frac {4 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{a^2 d}-\frac {5 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 a^2 d}+\frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{a^2 d}-\frac {5 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\sec (c+d x))}-\frac {\sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \sec (c+d x))^2} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 2.49 (sec) , antiderivative size = 252, normalized size of antiderivative = 1.43 \[ \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+a \sec (c+d x))^2} \, dx=-\frac {e^{-i d x} \cos \left (\frac {1}{2} (c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \left (-4 i e^{-i (c+d x)} \left (1+e^{i (c+d x)}\right )^3 \sqrt {1+e^{2 i (c+d x)}} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {3}{4},\frac {7}{4},-e^{2 i (c+d x)}\right )+40 \cos ^3\left (\frac {1}{2} (c+d x)\right ) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )-i \sin \left (\frac {1}{2} (c+d x)\right )\right )+i (29+50 \cos (c+d x)+17 \cos (2 (c+d x))+12 i \sin (c+d x)+7 i \sin (2 (c+d x)))\right ) \left (\cos \left (\frac {1}{2} (c+3 d x)\right )+i \sin \left (\frac {1}{2} (c+3 d x)\right )\right )}{6 a^2 d (1+\sec (c+d x))^2} \]
[In]
[Out]
Time = 13.24 (sec) , antiderivative size = 405, normalized size of antiderivative = 2.30
method | result | size |
default | \(-\frac {2 \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (5 \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-12 \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-2 \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (5 \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-12 \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-48 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+86 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-37 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{6 a^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(405\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.11 (sec) , antiderivative size = 278, normalized size of antiderivative = 1.58 \[ \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+a \sec (c+d x))^2} \, dx=-\frac {5 \, {\left (-i \, \sqrt {2} \cos \left (d x + c\right )^{2} - 2 i \, \sqrt {2} \cos \left (d x + c\right ) - i \, \sqrt {2}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 \, {\left (i \, \sqrt {2} \cos \left (d x + c\right )^{2} + 2 i \, \sqrt {2} \cos \left (d x + c\right ) + i \, \sqrt {2}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 12 \, {\left (i \, \sqrt {2} \cos \left (d x + c\right )^{2} + 2 i \, \sqrt {2} \cos \left (d x + c\right ) + i \, \sqrt {2}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 12 \, {\left (-i \, \sqrt {2} \cos \left (d x + c\right )^{2} - 2 i \, \sqrt {2} \cos \left (d x + c\right ) - i \, \sqrt {2}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) - \frac {2 \, {\left (12 \, \cos \left (d x + c\right )^{2} + 19 \, \cos \left (d x + c\right ) + 6\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{6 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\int { \frac {\sec \left (d x + c\right )^{\frac {7}{2}}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\int \frac {{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^2} \,d x \]
[In]
[Out]